package cn.antblog.code;

import cn.antblog.jdk8.bean.Student;
import cn.hutool.core.io.FileUtil;

/**
 * @author yangjy
 * @version 1.0
 * @description: TODO
 * @date 2022/8/8 10:35
 */
public class Test4 {


    public static void main(String[] args) {
        //判断excel中是否有重复
        /*List<ZqDxmjlWlwdljHt> disLisData = list.stream()
                .collect(
                        Collectors.collectingAndThen(
                                Collectors.toCollection(
                                        () -> new TreeSet<>(
                                                Comparator.comparing(
                                                        o -> o.getCityName() + "#" + o.getCustName() + "#" + o.getContractNumber() + "#" + o.getAccountId()
                                                )
                                        )
                                ), ArrayList::new
                        )
                );*/
//
       /* BigDecimal bigDecimal = new BigDecimal("-1.21");
        System.out.println("bigDecimal = " + bigDecimal);

        BigDecimal surplusAwardAmount = new BigDecimal("1.5").subtract(new BigDecimal("1.2"));
        System.out.println("surplusAwardAmount = " + surplusAwardAmount.toString());


        if (0.0 <= 0) {
            System.out.println("true ");
        }*/
//        String eparchyName = "202210";
//        String substring = eparchyName.substring(4);
//        System.out.println("substring = " + substring);
//        String eparchyNames = "2022";
//        //System.out.println(!eparchyName.startsWith(eparchyNames) && !eparchyNames.startsWith(eparchyName));
//        System.out.println(eparchyName.startsWith(eparchyNames));
       /* int c = a++;
        int d = ++a;
        int e = a--;*/
//        int a = 10;
//        int b = a++ + ++a + a--;
//
//        System.out.println(a);
//        System.out.println(b);
//        String accountId = "111";
//        String[] split = accountId.trim().split(",");
//        System.out.println(split);

        /*final Student  student = new Student("张三",24);
        System.out.println(student);*/
        // student = new Student();

        // 获取不带后缀文件名称 /profile/upload/2022/04/16/aaa.png -- aaa
        String fileName = "/profile/upload/2022/04/16/aaa.png";
        String fileName1 = null;
        int length = fileName1.length();
        String b = fileName.length() >= 1999 ? fileName.substring(0,1998):fileName;
        System.out.println(length);
        System.out.println(b);
//        System.out.println(""+ FileUtil.getPrefix(fileName));
//
//        // String title = "有问题\"测试消息发送-测试消息发送-2023031700002\"分发给您";
//        String title = "有问题";
//        String[] split = title.split("\\\"");
//        //System.out.println(split[1]);
//
//        int ji = 16 | 4;
//        System.out.println(ji);
    }

}
